<template>
  <div class="home">
    这是首页
    <a-button type="primary" @click="set">Primary Button</a-button>
    <a-button type="primary" @click="get">Primary Button</a-button>
    <div>{{ dd }}</div>
  </div>
</template>

<script setup>
import { ref } from "vue";
const { ipcRenderer } = require("electron");
const Store = require("electron-store");
const store = new Store();
const dd = ref({});

function set(){
    store.set("AA", {
        name: "张三",
        age: 18,
      });
}

function get(){
   dd.value = store.get("AA");
}
</script>

<style scoped></style>
